package com.copa.module.goods.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.copa.domain.PageVo;
import com.copa.domain.ResponseDto;
import com.copa.module.goods.domain.dto.GoodsDetailDto;
import com.copa.module.goods.domain.dto.GoodsDto;
import com.copa.module.goods.domain.vo.GoodsAddVo;
import com.copa.module.goods.domain.vo.GoodsUpdateVo;

/**
 * @author copa
 * @createDate 2021-01-08 12:28
 * @function
 */
public interface GoodsService {

    /**
     * 添加商品
     * @param goodsAddVo
     * @return
     */
    ResponseDto<String> addGoods(GoodsAddVo goodsAddVo);

    /**
     * 查看商品列表
     * @param pageVo
     * @return
     */
    ResponseDto<IPage<GoodsDto>> list(PageVo pageVo, String goodsName);

    ResponseDto<GoodsDetailDto> detail(Long goodsId);

    ResponseDto<String> put(GoodsUpdateVo goodsUpdateVo);
}
